<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/DeciderToPhyInterface.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00292.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">DeciderToPhyInterface.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode:c++ -*- ********************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> */</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef DECIDER_TO_PHY_INTERFACE_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define DECIDER_TO_PHY_INTERFACE_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;omnetpp.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;MiXiMDefs.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">class </span>MiximAirFrame;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="a00030.html" title="Provides information and utility methods for the whole simulation.">BaseWorldUtility</a>;
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a>;
<a name="l00019"></a>00019 
<a name="l00023"></a>00023 <span class="keyword">class </span><a class="code" href="a00075.html" title="A class to represent the result of a processed packet (that is not noise) by the Decider.">DeciderResult</a>;
<a name="l00024"></a>00024 
<a name="l00039"></a><a class="code" href="a00079.html">00039</a> <span class="keyword">class </span>MIXIM_API <a class="code" href="a00079.html" title="This class is the interface for a Decider to the BasePhyLayer.">DeciderToPhyInterface</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="keyword">public</span>:
<a name="l00042"></a>00042   <span class="keyword">typedef</span> MiximAirFrame airframe_t;
<a name="l00043"></a>00043   <span class="keyword">typedef</span> airframe_t*   airframe_ptr_t;
<a name="l00049"></a><a class="code" href="a00079.html#a13e15d0d80017e55821963b3b4a6cf55">00049</a>   <span class="keyword">typedef</span> std::list&lt;airframe_ptr_t&gt;  <a class="code" href="a00079.html#a13e15d0d80017e55821963b3b4a6cf55" title="Type for container of AirFrames.">AirFrameVector</a>;
<a name="l00050"></a>00050 
<a name="l00055"></a><a class="code" href="a00079.html#a37995e7f41efc2f95b081653ca01b482">00055</a>   <span class="keyword">typedef</span> std::map&lt;std::string, cMsgPar&gt; <a class="code" href="a00079.html#a37995e7f41efc2f95b081653ca01b482" title="Used at initialization to pass the parameters to the AnalogueModel and Decider.">ParameterMap</a>;
<a name="l00056"></a>00056 
<a name="l00057"></a>00057   <span class="keyword">virtual</span> ~<a class="code" href="a00079.html" title="This class is the interface for a Decider to the BasePhyLayer.">DeciderToPhyInterface</a>() {}
<a name="l00058"></a>00058 
<a name="l00067"></a>00067   <span class="keyword">virtual</span> <span class="keywordtype">void</span> getChannelInfo(simtime_t_cref from, simtime_t_cref to, AirFrameVector&amp; out) <span class="keyword">const</span> = 0;
<a name="l00068"></a>00068 
<a name="l00076"></a>00076   <span class="keyword">virtual</span> <a class="code" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a>* getThermalNoise(simtime_t_cref from, simtime_t_cref to) = 0;
<a name="l00077"></a>00077 
<a name="l00084"></a>00084   <span class="keyword">virtual</span> <span class="keywordtype">void</span> sendControlMsgToMac(cMessage* msg) = 0;
<a name="l00085"></a>00085 
<a name="l00094"></a>00094   <span class="keyword">virtual</span> <span class="keywordtype">void</span> sendUp(airframe_ptr_t packet, <a class="code" href="a00075.html" title="A class to represent the result of a processed packet (that is not noise) by the Decider.">DeciderResult</a>* result) = 0;
<a name="l00095"></a>00095 
<a name="l00100"></a>00100   <span class="keyword">virtual</span> simtime_t getSimTime() <span class="keyword">const</span> = 0;
<a name="l00101"></a>00101 
<a name="l00109"></a>00109   <span class="keyword">virtual</span> <span class="keywordtype">void</span> cancelScheduledMessage(cMessage* msg) = 0;
<a name="l00110"></a>00110 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <span class="keywordtype">void</span> rescheduleMessage(cMessage* msg, simtime_t_cref t) = 0;
<a name="l00120"></a>00120 
<a name="l00127"></a>00127   <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawCurrent(<span class="keywordtype">double</span> amount, <span class="keywordtype">int</span> activity) = 0;
<a name="l00128"></a>00128 
<a name="l00138"></a>00138   <span class="keyword">virtual</span> <span class="keywordtype">void</span> recordScalar(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">double</span> value, <span class="keyword">const</span> <span class="keywordtype">char</span> *unit=NULL) = 0;
<a name="l00139"></a>00139 
<a name="l00141"></a>00141   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getCurrentRadioChannel() <span class="keyword">const</span> = 0;
<a name="l00142"></a>00142 
<a name="l00144"></a>00144   <span class="keyword">virtual</span> <span class="keywordtype">int</span> getNbRadioChannels() <span class="keyword">const</span> = 0;
<a name="l00145"></a>00145 
<a name="l00149"></a>00149   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isRadioInRX() <span class="keyword">const</span> = 0;
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 
<a name="l00158"></a>00158   <span class="keyword">virtual</span> <span class="keywordtype">long</span> getPhyHeaderLength() <span class="keyword">const</span> = 0;
<a name="l00159"></a>00159 };
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="preprocessor">#endif </span><span class="comment">/*DECIDER_TO_PHY_INTERFACE_H_*/</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>DeciderToPhyInterface.h</b>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:29 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
